﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dos.ORM;
using Dos.Model;

public partial class webmx_program_gongde_List : System.Web.UI.Page
{
    public List<temple_Contents> data;
    protected void Page_Load(object sender, EventArgs e)
    {
        CategoryActions cate = new CategoryActions();
        int cid = (int)cate.GetList("功德").Rows[0]["ID"];
        data = DB.Context.From<temple_Contents>().Select(s => new { s.ID, s.Title, s.Depict, s.Info, s.Photo, s.Attachment, s.CategoryID, s.Flag, s.SortID, s.AddTime }).Where(w => w.IsDel == false && w.CategoryID == 1).OrderByDescending(ob => ob.SortID).ToList();
    }
}